package com.basics.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.basics.user.entity.CyAuth;
import com.basics.user.mapper.CyAuthMapper;
import com.basics.user.service.CyAuthService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 实名认证信息 服务实现类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
@Service
public class CyAuthServiceImpl extends ServiceImpl<CyAuthMapper, CyAuth> implements CyAuthService {

    @Override
    public CyAuth getByUserId(Long userId){
        return getOne(new QueryWrapper<CyAuth>().eq("user_id",userId));
    }
}
